<template>
  <div class="video_item">
    <div style="background-color:#848C93;">
      <VideoPlaya style="height: 100%;width: 100%;" :autoplay="true" :src="data.src"></VideoPlaya>
    </div>
    <div class="title_part">{{ data.title }}</div>
  </div>
</template>

<script setup lang="ts">
import { ref, reactive, toRefs, onMounted} from 'vue'
import VideoPlaya from '@/components/VideoPlay/index.vue'

let props = defineProps({
  data:{
    type:Object,
    default:()=>({
      title:'',
      src:''
    })
  }
})

</script>
<style scoped lang="scss">
.video_item{
    height: 100%;
    width: 100%;
}
.title_part{
    width: 100%;
    height: 31px;
    line-height: 31px;
    background:#212E3A;
    font-weight: 400;
    font-size: 12px;
    text-align: center;
    color: #d8f0ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
</style>